/**
 * @Description:
 * @Author bianpengfei
 * @create 2022/1/12 10:50
 */
module.exports = {
  base: '/',
  lang: 'zh-CN',
  title: '移动端bi',
  description: '说明文档',
  lastUpdated: '上次更新时间', // string | boolean
  head: [
    [
      'meta',
      {
        name: 'viewport',
        content: 'width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no'
      }
    ],
    ['meta', { name: 'keywords', content: 'vite vui' }],
    ['link', { rel: 'icon', href: '/favicon.ico' }]
  ],
  markdown: {
    config: md => {
      // 这里可以使用 markdown-it 插件，vitepress-theme-demoblock就是基于此开发的
      const { demoBlockPlugin } = require('vitepress-theme-demoblock')
      md.use(demoBlockPlugin, {
        cssPreprocessor: 'less'
      })
    }
  },
  themeConfig: {
    smoothScroll: true,
    logo: `/img.png`,
    nav: [
      { text: '基础组件', link: '/basic-components/' },
      { text: '业务组件', link: '/business-components/' }
    ],
    sidebar: {
      '/basic-components/': [
        {
          text: '基础组件',
          collapsible: false,
          children: [
            { text: 'g-title', link: '/basic-components/title' },
            { text: 'g-chart', link: '/basic-components/chart' },
          ]
        }
      ]
      // '/': [
      //   { text: '基础组件', link: '/' },
      //   {
      //     text: '基础组件',
      //     link: '/',
      //     children: [{ text: 'Button 按钮', link: '/components/button/' }]
      //   }
      // ]
    }
  }
  // plugins: [
  //   '@vuepress/plugin-active-header-links', // 页面滚动时自动激活侧边栏链接的插件
  //   '@vuepress/plugin-back-to-top', // 返回顶部插件
  //   '@vuepress/plugin-nprogress' //页面顶部进度条
  // ]
}
